package other;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @program: javase
 * @description:
 * @author: lld
 * @create: 2021-03-31 22:37
 **/
public class Test2 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("12");
        list.add("2");
        list.add("123");
        list.set(0,"12");
//        boolean remove = list.remove("12");
        System.out.println(list);
        Collections.sort(list);
        System.out.println(list);
        Collections.synchronizedList(list);
        Collections.synchronizedMap(new HashMap<>());
        new CopyOnWriteArrayList();
    }
}
